<?
/**
*  通过电话号码定位客户
*  2013/7/15, by zh
*/
session_start();
session_cache_limiter('private');
session_cache_expire(60*12);
header("P3P: CP='ALL ADM DEV PSAi COM OUR OTRo STP IND ONL'");

if(empty($_GET['agent']) || empty($_GET['page'])) {
	exit;
}

$page_url = array(
	'client'=>'client_list.php', 'order'=>'order_list.php'
);

$page = $_GET['page'];   // 目标页面
$agent = $_GET['agent'];   // 座席工号

$_SESSION['is_agent'] = "yes";  
$_SESSION['uid'] = $agent;  
$_SESSION['user_flag'] = 'admin';  // 将座席工号标识为管理角色

//print_r($_SESSION);
echo "<script> window.location = '".$page_url[$page] ."'; </script>"; 

?>